import Vue from "vue"
import VueRouter from "vue-router"
Vue.use(VueRouter)

import routes from "routes/routes"
const router = new VueRouter({
    routes,
    mode:"history",
    scrollBehavior () {
        return {x:0,y:0}
    }
})


import {defined} from "./defined"
defined(router)

export default router